//
//  HealthKnowledgeDetailView.m
//  LoveHealth
//
//  Created by 陈永坤 on 14-9-22.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "HealthKnowledgeDetailView.h"

@implementation HealthKnowledgeDetailView

- (void)dealloc
{
    self.knowledgeDetail = nil;
    [super dealloc];
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setKnowledgeDetail:(HealthKnowledgeDetail *)knowledgeDetail
{
    if (_knowledgeDetail!=knowledgeDetail) {
        [_knowledgeDetail release];
        _knowledgeDetail = [knowledgeDetail retain];
    }
    
    
    [self.detailWebView loadHTMLString:knowledgeDetail.message baseURL:nil];
    
    self.detailTitleLabel.text = knowledgeDetail.title;
    
    self.detailImageView.image = knowledgeDetail.showImage;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
